package com.gitee.pifeng.monitoring.ui.business.web.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gitee.pifeng.monitoring.ui.business.web.entity.TLinkLatest;
import com.gitee.pifeng.monitoring.ui.business.web.vo.TLinkLatestVo;
import com.gitee.pifeng.monitoring.ui.business.web.vo.VisErrMsgVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 数据库表数据访问对象
 * </p>
 *
 * @author 皮锋
 * @custom.date 2020-12-19
 */
public interface ITLinkLatestDao extends BaseMapper<TLinkLatest> {

    List<TLinkLatestVo> getDataLinkList(String showName);

    List<TLinkLatestVo> getShowName();

    List<TLinkLatestVo> getLatestData(String linkName, String source, String target);

    VisErrMsgVo getErrMsg(String linkName, String runningOn, String latestCheckTime, String subLinkName, String processName);

    List<TLinkLatestVo> getlinkLatestLists(TLinkLatestVo tLinkLatestVo);

    List<TLinkLatestVo> getlinkLatestList(Long current, Long size, String showName, String latestProcessStat);

    Integer getLinkNameCount();

    public int deleteLinkLatest(@Param("ShowName")String ShowName);
}
